﻿

using IotContract.Dtos.Servers.Pushs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Dtos.Servers.Process;
/// <summary>
/// 中鼎物流线站台单元
/// </summary>
public class ZdCvUnitDto
{
    /// <summary>
    /// 站台号
    /// </summary>
    public int TagNum { get; set; }
    public string EquipNum { get; set; }
    public long EquipId { get; set; }

    public bool Connection { get; set; }
    public string ProtobufType { get; set; }
    public List<PushEquipTag> Tags { get; set; }
    /// <summary>
    /// 错误码
    /// </summary>
    public int Error { get; set; }
    /// <summary>
    /// 托盘
    /// </summary>
    public string Tray { get; set; }
    /// <summary>
    /// 任务号
    /// </summary>
    public int Task { get; set; }
    /// <summary>
    /// 高位停准
    /// </summary>
    public int MoveHigh { get; set; }
    /// <summary>
    /// 低位停准
    /// </summary>
    public int MoveLow { get; set; }
    public bool IsExistTray { get; set; }
    /// <summary>
    /// 托盘到位时间
    /// </summary>
    public DateTime? TrayInTime { get; set; }
    /// <summary>
    /// 托盘停留时间
    /// </summary>
    public double TrayOnMinutes { get; set; }
    /// <summary>
    /// 目的地址
    /// </summary>
    public int Dest { get; set; }
    /// <summary>
    /// 写入地址
    /// </summary>
    public int W_Dest { get; set; }
    /// <summary>
    /// 0-脱机；1-脱机执行任务（弃用留作兼容）；2-待机；3-运行中；4到255预留给WCS指定（用于申请特殊任务）。4-空托盘入库（弃用）、5-申请空托盘、6-超时（堵线时用）；7-预留；8-预留；9-机械手工作完成；11-侧弹式设备确认进入；12-侧弹式设备确认离开；13-出库退回；14-申请任务，15-空托盘叠盘，不扫码，申请入库@497。16-请求是否整形。17-预留；18-电芯检测完成；
    /// </summary>
    public int Mode { get; set; }
}
